package com.entity;

import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.ArrayList;
import java.util.List;


public class MongoDBDocument {
    @Id
    private String id;
    @Field
    private String memberJson;

    List<MongoDBDocument> mongoDBDocuments = new ArrayList<MongoDBDocument>();

    public MongoDBDocument() {
    }

    public MongoDBDocument(String id, String memberJson) {
        this.id = id;
        this.memberJson = memberJson;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getMemberJson() {
        return memberJson;
    }

    public void setMemberJson(String memberJson) {
        this.memberJson = memberJson;
    }

    public List<MongoDBDocument> getMongoDBDocuments() {
        return mongoDBDocuments;
    }

    public void setMongoDBDocuments(List<MongoDBDocument> mongoDBDocuments) {
        this.mongoDBDocuments = mongoDBDocuments;
    }
}
